package com.ruiysoft.controller.integralmdse.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * InnrIntegralMdseVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-04-27T05:33:12.415+08:00")

public class InnrIntegralMdseVo   {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("integral")
  private Long integral = null;

  @JsonProperty("price")
  private Long price = null;

  @JsonProperty("type")
  private Integer type = null;

  @JsonProperty("mLv")
  private Integer mLv = null;

  public InnrIntegralMdseVo id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * id
   * @return id
  **/
  @ApiModelProperty(example = "1", value = "id")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public InnrIntegralMdseVo integral(Long integral) {
    this.integral = integral;
    return this;
  }

  /**
   * 积分
   * @return integral
  **/
  @ApiModelProperty(example = "1", value = "积分")


  public Long getIntegral() {
    return integral;
  }

  public void setIntegral(Long integral) {
    this.integral = integral;
  }

  public InnrIntegralMdseVo price(Long price) {
    this.price = price;
    return this;
  }

  /**
   * 价格(分)
   * @return price
  **/
  @ApiModelProperty(example = "12", value = "价格(分)")


  public Long getPrice() {
    return price;
  }

  public void setPrice(Long price) {
    this.price = price;
  }

  public InnrIntegralMdseVo type(Integer type) {
    this.type = type;
    return this;
  }

  /**
   * 类型（1，纯现金或纯积分，2，固定现金+固定积分，3，积分抵现金)
   * @return type
  **/
  @ApiModelProperty(example = "1", value = "类型（1，纯现金或纯积分，2，固定现金+固定积分，3，积分抵现金)")


  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public InnrIntegralMdseVo mLv(Integer mLv) {
    this.mLv = mLv;
    return this;
  }

  /**
   * 会员等级
   * @return mLv
  **/
  @ApiModelProperty(example = "1", value = "会员等级")


  public Integer getMLv() {
    return mLv;
  }

  public void setMLv(Integer mLv) {
    this.mLv = mLv;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InnrIntegralMdseVo innrIntegralMdseVo = (InnrIntegralMdseVo) o;
    return Objects.equals(this.id, innrIntegralMdseVo.id) &&
        Objects.equals(this.integral, innrIntegralMdseVo.integral) &&
        Objects.equals(this.price, innrIntegralMdseVo.price) &&
        Objects.equals(this.type, innrIntegralMdseVo.type) &&
        Objects.equals(this.mLv, innrIntegralMdseVo.mLv);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, integral, price, type, mLv);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InnrIntegralMdseVo {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    integral: ").append(toIndentedString(integral)).append("\n");
    sb.append("    price: ").append(toIndentedString(price)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    mLv: ").append(toIndentedString(mLv)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

